package com.czwj.dao;

import java.util.List;
import java.util.Map;

import com.czwj.entities.BudgetSubItem;

public interface BudgetSubItemMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BudgetSubItem record);

    int insertSelective(BudgetSubItem record);

    BudgetSubItem selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BudgetSubItem record);

    int updateByPrimaryKey(BudgetSubItem record);

	int updateStatus(int id);

	int countbylevel3(Map<String, Object> map);

	List<BudgetSubItem> searchbylevel3(Map<String, Object> map);

	List<BudgetSubItem> searchbylevel1(Map<String, Object> map);

	int countbylevel1(Map<String, Object> map);

	List<BudgetSubItem> searchbylevel2(Map<String, Object> map);

	int countbylevel2(Map<String, Object> map);

	List<BudgetSubItem> searchReviewedLevel1(Map<String, Object> map);

	int countReviewedLevel1(Map<String, Object> map);

	List<BudgetSubItem> searchReviewedLevel2(Map<String, Object> map);

	int countReviewedLevel2(Map<String, Object> map);
	
	List<BudgetSubItem> searchbymain(int id);

	List<BudgetSubItem> getbudget(Map<String, Object> map);

	/**
	* @Title: search
	* @Description: TODO
	* @param map
	* @return 参数 
	* @return List<BudgetSubItem> 返回类型
	* @throws
	*/
	List<BudgetSubItem> search(Map<String,Object> map);

	/**
	* @Title: count
	* @Description: TODO
	* @param map
	* @return 参数 
	* @return int 返回类型
	* @throws
	*/
	int count(Map<String,Object> map);
}